package cn.cyh.org.domain;

import cn.cyh.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain{
    // 部门编号
    private String sn;
    // 部门名称
    private String name;
    // 部门的上级分类层级id
    private String dirPath;
    // 部门的状态 0正常 1禁用
    private Integer state;
    // 部门管理员  关联Empoyee表id
    private Integer manager_id;
    // 上级部门
    private Integer parent_id;
    //  引用属性
    private Employee employee;

    private Department parent;

    // 子部门

    private List<Department> children = new ArrayList<>();

    public Department(String name) {
        this.name = name;
    }

    public Department() {
    }
}
